<template>
  <div class="container">
    <navBar :title="'公告消息'" :backStep="'index'"></navBar>
    <div class="msgBox">
      <div class="msgItem">
        <div class="left">
          <img src="@/assets/common/组 5853.png" alt="" />
        </div>
        <div class="right">
          <div class="title">您有新的隐患任务【JDF12345】待整改</div>
          <div class="time">06-01 15:00:00</div>
        </div>
      </div>

      <div class="msgItem">
        <div class="left">
          <img src="@/assets/common/组 5853.png" alt="" />
        </div>
        <div class="right">
          <div class="title">您有新的隐患任务【JDF12345】待整改</div>
          <div class="time">06-01 15:00:00</div>
        </div>
      </div>

      <div class="msgItem">
        <div class="left">
          <img src="@/assets/common/组 5853.png" alt="" />
        </div>
        <div class="right">
          <div class="title">您有新的隐患任务【JDF12345】待整改</div>
          <div class="time">06-01 15:00:00</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import navBar from '@/components/navBar.vue'

export default {
  name: 'noticeMsg',
  props: {},
  components: {
    navBar,
  },
  data() {
    return {}
  },
  methods: {},
  mounted() {},
  watch: {},
  computed: {},
  filters: {},
}
</script>

<style scoped lang="scss">
.container {
  width: 100%;
  height: 100vh;
  background-color: #f5f6f7;
}
.msgBox {
  padding: 12px 16px;
  .msgItem {
    margin-bottom: 12px;
    border-radius: 8px;
    width: 100%;
    background-color: #fff;
    height: 76px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding-left: 16px;
    .left {
      margin-right: 16px;
    }
    img {
      width: 36px;
      height: 36px;
    }
    .right {
      width: 80%;
      .title {
        white-space: nowrap; /* 禁止换行 */
        overflow: hidden; /* 隐藏溢出内容 */
        text-overflow: ellipsis; /* 显示省略号 */
      }
      .time {
        background-color: #f6f8fa;
        border-radius: 4px;
        color: #6d747f;
        width: 110px;
        margin-top: 8px;
        padding: 4px;
        font-size: 14px;
        text-align: center;
      }
    }
  }
}
</style>
